package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.*;
import com.itgaoshu.hospitalproject.mapper.ProjecttypeMapper;
import com.itgaoshu.hospitalproject.service.ProjecttypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ProjecttypeServiceImpl implements ProjecttypeService {
    @Autowired
    private ProjecttypeMapper projecttypeMapper;

    @Override
    public List<Projecttype> findAllProjecttype(String projectName) {
        return projecttypeMapper.findAllProjecttype(projectName);
    }

    @Override
    public int addProjecttype(Projecttype projecttype) {
        return projecttypeMapper.addProjecttype(projecttype);
    }

    @Override
    public int count(Projecttype projecttype) {
        return projecttypeMapper.count(projecttype);
    }

    @Override
    public List<Bed> findAllBed(String bedname) {
        return projecttypeMapper.findAllBed(bedname);
    }

    @Override
    public int addBed(Bed bed) {
        return projecttypeMapper.addBed(bed);
    }

    @Override
    public int count1(Bed bed) {
        return projecttypeMapper.count1(bed);
    }

    @Override
    public int editBed(Bed bed) {
        return projecttypeMapper.editBed(bed);
    }

    @Override
    public int deleteBed(int bedId) {
        return projecttypeMapper.deleteBed(bedId);
    }

    @Override
    public int count2(int bedId) {
        return projecttypeMapper.count2(bedId);
    }

    @Override
    public List<Moneytype> findAllMoneytype(String moneytype) {
        return projecttypeMapper.findAllMoneytype(moneytype);
    }

    @Override
    public int addMoneytype(Moneytype moneytype) {
        return projecttypeMapper.addMoneytype(moneytype);
    }

    @Override
    public int count3(Moneytype moneytype) {
        return projecttypeMapper.count3(moneytype);
    }

    @Override
    public int editMoneytype(Moneytype moneytype) {
        return projecttypeMapper.editMoneytype(moneytype);
    }

    @Override
    public int deleteMoneytype(int moneyId) {
        return projecttypeMapper.deleteMoneytype(moneyId);
    }

    @Override
    public List<Outpatienttype> findAllOutpatienttype(String projectName) {
        return projecttypeMapper.findAllOutpatienttype(projectName);
    }

    @Override
    public int addOutpatienttype(Outpatienttype outpatienttype) {
        return projecttypeMapper.addOutpatienttype(outpatienttype);
    }

    @Override
    public int count4(Outpatienttype outpatienttype) {
        return projecttypeMapper.count4(outpatienttype);
    }

    @Override
    public int editOutpatienttype(Outpatienttype outpatienttype) {
        return projecttypeMapper.editOutpatienttype(outpatienttype);
    }

    @Override
    public int deleteOutpatienttype(int outpatientId) {
        return projecttypeMapper.deleteOutpatienttype(outpatientId);
    }

    @Override
    public List<Inoutpatienttype> findAllInoutpatienttype(String projectName) {
        return projecttypeMapper.findAllInoutpatienttype(projectName);
    }

    @Override
    public int addInoutpatienttype(Inoutpatienttype inoutpatienttype) {
        return projecttypeMapper.addInoutpatienttype(inoutpatienttype);
    }

    @Override
    public int count5(Inoutpatienttype inoutpatienttype) {
        return projecttypeMapper.count5(inoutpatienttype);
    }

    @Override
    public int editInoutpatienttype(Inoutpatienttype inoutpatienttype) {
        return projecttypeMapper.editInoutpatienttype(inoutpatienttype);
    }

    @Override
    public int deleteInoutpatienttype(int inoutpatientId) {
        return projecttypeMapper.deleteInoutpatienttype(inoutpatientId);
    }
}
